﻿using System;
using System.Linq;

namespace Df.Common.Forms
{
    public interface IFormBusiness
    {
        DForm Get(int id = 0);
        IQueryable<DForm> Get(string refEntityName);
        void Create(DForm DForm);
        void Update(DForm DForm);
        void Update(int DFormId, string jsonElements);
        void Update(int DFormId, Type refEntityType, int refEntityId);
        void Delete(int DFormId);
        void CreateEdit(DForm DForm, Type refEntityType);
        void SectionFillTextBoxData(DfSection section, object data);
    }
}
